﻿using Prism.Commands;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace 基于WPF的电缆采样数据分析系统.Views.CommonComponent
{
    /// <summary>
    /// ComputeComponent.xaml 的交互逻辑
    /// </summary>
    public partial class ComputeComponentScale : UserControl
    {
        public ComputeComponentScale()
        {
            InitializeComponent();
        }

        #region 显示标题
        public string ShowTitle
        {
            get { return (string)GetValue(ShowTitleProperty); }
            set { SetValue(ShowTitleProperty, value); }
        }

        public static readonly DependencyProperty ShowTitleProperty =
            DependencyProperty.Register("ShowTitle", typeof(string), typeof(ComputeComponentScale), new PropertyMetadata(default(string)));

        #endregion


        #region 提示
        public string HintValue
        {
            get { return (string)GetValue(HintValueProperty); }
            set { SetValue(HintValueProperty, value); }
        }

        
        public static readonly DependencyProperty HintValueProperty =
            DependencyProperty.Register("HintValue", typeof(string), typeof(ComputeComponentScale), new PropertyMetadata(default(string)));

        #endregion


        #region 计算值
        public string ComputeValue
        {
            get { return (string)GetValue(ComputeValueProperty); }
            set { SetValue(ComputeValueProperty, value); }
        }

        public static readonly DependencyProperty ComputeValueProperty =
            DependencyProperty.Register("ComputeValue", typeof(string), typeof(ComputeComponentScale), new PropertyMetadata(default(string)));
        #endregion


        #region 计算器命令


        public DelegateCommand<string> CalculatorCmm    
        {
            get { return (DelegateCommand<string>)GetValue(CalculatorCmmProperty); }
            set { SetValue(CalculatorCmmProperty, value); }
        }

        public static readonly DependencyProperty CalculatorCmmProperty =
            DependencyProperty.Register("CalculatorCmm", typeof(DelegateCommand<string>), typeof(ComputeComponentScale), new PropertyMetadata(default(DelegateCommand<string>)));

        #endregion


        #region 单位
        public string UnitValue
        {
            get { return (string)GetValue(UnitValueProperty); }
            set { SetValue(UnitValueProperty, value); }
        }

        public static readonly DependencyProperty UnitValueProperty =
            DependencyProperty.Register("UnitValue", typeof(string), typeof(ComputeComponentScale), new PropertyMetadata(default(string)));

        #endregion
    }
}
